<?php
namespace core\database;

interface IDatabase
{
	/**
	 * @param $host
	 * @param $user
	 * @param $pass
	 * @param $dbname
	 * @return mixed
	 * @author sweeterstar <2021/4/23>
	 */
	function connect($host, $user, $pass, $dbname);

	/**
	 * @param $sql
	 * @return mixed
	 * @author sweeterstar <2021/4/23>
	 */
	function query($sql);

	/**
	 * @return mixed
	 * @author sweeterstar <2021/4/23>
	 */
	function close();
}